<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <div class="my_title" >工程信息表</div>
      <el-form-item label="工程id" prop="id">
        <el-input
          v-model="queryParams.id"
          placeholder="请输入工程id"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="工程名称" prop="engname">
        <el-input
          v-model="queryParams.engname"
          placeholder="请输入工程名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="工程号" prop="engno">
        <el-input
          v-model="queryParams.engno"
          placeholder="请输入工程号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label-width="100px"  label="工程流水号" prop="engid">
        <el-input
          v-model="queryParams.engid"
          placeholder="请输入工程流水号"
          clearable
          @keyup.enter.native="handleQuery"

        />
      </el-form-item>
      <el-form-item label="案卷数" prop="anjuanshu" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.anjuanshu"
          placeholder="请输入案卷数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="档案馆代号" prop="danganguanno"  v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.danganguanno"
          placeholder="请输入档案馆代号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="档案馆名称" prop="danganguanname"  v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.danganguanname"
          placeholder="请输入档案馆名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="数字化单位" prop="shuzihuadanwei" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.shuzihuadanwei"
          placeholder="请输入数字化单位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="移交单位" prop="yijiaodanwei" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.yijiaodanwei"
          placeholder="请输入移交单位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="编制起始时间" prop="bianzhidatestart" v-if="showAdvancedSearch">
        <el-date-picker clearable
                        v-model="queryParams.bianzhidatestart"
                        type="date"
                        value-format="yyyy-MM-dd"
                        placeholder="请选择编制起始时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="编制结束时间" prop="bianzhidateend" v-if="showAdvancedSearch">
        <el-date-picker clearable
                        v-model="queryParams.bianzhidateend"
                        type="date"
                        value-format="yyyy-MM-dd"
                        placeholder="请选择编制结束时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="工程地点" prop="allname" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.allname"
          placeholder="请输入工程地点"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="建设单位" prop="buildingorg" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.buildingorg"
          placeholder="请输入建设单位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="立项批准单位" prop="checkorg" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.checkorg"
          placeholder="请输入立项批准单位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="设计单位" prop="designorg" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.designorg"
          placeholder="请输入设计单位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="施工单位" prop="operationorg" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.operationorg"
          placeholder="请输入施工单位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="勘察单位" prop="explorationorg" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.explorationorg"
          placeholder="请输入勘察单位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="监理单位" prop="supervisionorg" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.supervisionorg"
          placeholder="请输入监理单位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="立项批准文号" prop="checkIssueno" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.checkIssueno"
          placeholder="请输入立项批准文号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="规划许可证号" prop="planlicenseno" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.planlicenseno"
          placeholder="请输入规划许可证号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="用地规划许可证号" prop="landplanlicenseno" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.landplanlicenseno"
          placeholder="请输入用地规划许可证号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="用地许可证" prop="landlicenseno" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.landlicenseno"
          placeholder="请输入用地许可证"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="施工许可证号" prop="operationlicenseno" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.operationlicenseno"
          placeholder="请输入施工许可证号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="地形图号" prop="mapnum" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.mapnum"
          placeholder="请输入地形图号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="起点" prop="startstation" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.startstation"
          placeholder="请输入起点"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="止点" prop="endstation" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.endstation"
          placeholder="请输入止点"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="总长度(m)" prop="totallength" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.totallength"
          placeholder="请输入总长度(m)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="开工时间" prop="startdate" v-if="showAdvancedSearch">
        <el-date-picker clearable
                        v-model="queryParams.startdate"
                        type="date"
                        value-format="yyyy-MM-dd"
                        placeholder="请选择开工时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="竣工时间" prop="enddate" v-if="showAdvancedSearch">
        <el-date-picker clearable
                        v-model="queryParams.enddate"
                        type="date"
                        value-format="yyyy-MM-dd"
                        placeholder="请选择竣工时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="工程造价" prop="cost" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.cost"
          placeholder="请输入工程造价"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="工程结算" prop="balance" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.balance"
          placeholder="请输入工程结算"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="项目经理" prop="projmanager" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.projmanager"
          placeholder="请输入项目经理"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="驻地工程师" prop="enginee" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.enginee"
          placeholder="请输入驻地工程师"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="业主代表" prop="owner" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.owner"
          placeholder="请输入业主代表"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="计划时间" prop="plandate" v-if="showAdvancedSearch">
        <el-date-picker clearable
                        v-model="queryParams.plandate"
                        type="date"
                        value-format="yyyy-MM-dd"
                        placeholder="请选择计划时间">
        </el-date-picker>
      </el-form-item>
<!--      <el-form-item label="${comment}" prop="hintday">-->
<!--        <el-input-->
<!--          v-model="queryParams.hintday"-->
<!--          placeholder="请输入${comment}"-->
<!--          clearable-->
<!--          @keyup.enter.native="handleQuery"-->
<!--        />-->
<!--      </el-form-item>-->
      <el-form-item label="责任者" prop="duty" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.duty"
          placeholder="请输入责任者"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="分部(项)工程" prop="partproj" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.partproj"
          placeholder="请输入分部(项)工程"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="合同号" prop="cnum" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.cnum"
          placeholder="请输入合同号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="桩号及部位" prop="place" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.place"
          placeholder="请输入桩号及部位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="存放位置" prop="place1" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.place1"
          placeholder="请输入存放位置"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="存放位置" prop="place2" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.place2"
          placeholder="请输入存放位置"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="存放位置" prop="place3" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.place3"
          placeholder="请输入存放位置"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="存放位置" prop="place4" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.place4"
          placeholder="请输入存放位置"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="标段号" prop="bdnum" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.bdnum"
          placeholder="请输入标段号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="单体号" prop="dtnum" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.dtnum"
          placeholder="请输入单体号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="完成标志" prop="finishflag" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.finishflag"
          placeholder="请输入完成标志"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="总用地面积" prop="ground" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.ground"
          placeholder="请输入总用地面积"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="总建筑面积" prop="totalarea" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.totalarea"
          placeholder="请输入总建筑面积"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="幢数" prop="house" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.house"
          placeholder="请输入幢数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="建筑面积(平方米)" prop="area" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.area"
          placeholder="请输入建筑面积(平方米)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="长度(米)" prop="length" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.length"
          placeholder="请输入长度(米)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="规格" prop="spec" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.spec"
          placeholder="请输入规格"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="高度(米)" prop="height" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.height"
          placeholder="请输入高度(米)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="宽度(米)" prop="width" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.width"
          placeholder="请输入宽度(米)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="级别" prop="nlevel" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.nlevel"
          placeholder="请输入级别"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="跨径(米)" prop="span" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.span"
          placeholder="请输入跨径(米)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="净空" prop="headroom" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.headroom"
          placeholder="请输入净空"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="申请时间" prop="applydate" v-if="showAdvancedSearch">
        <el-date-picker clearable
                        v-model="queryParams.applydate"
                        type="date"
                        value-format="yyyy-MM-dd"
                        placeholder="请选择申请时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="批准时间" prop="passdate" v-if="showAdvancedSearch">
        <el-date-picker clearable
                        v-model="queryParams.passdate"
                        type="date"
                        value-format="yyyy-MM-dd"
                        placeholder="请选择批准时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="征拨分类" prop="collection" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.collection"
          placeholder="请输入征拨分类"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="荷载" prop="nload" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.nload"
          placeholder="请输入荷载"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="地上层数" prop="floorUp" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.floorUp"
          placeholder="请输入地上层数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="结构类型" prop="structure" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.structure"
          placeholder="请输入结构类型"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="承诺书编号" prop="consentnum" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.consentnum"
          placeholder="请输入承诺书编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="证书编号" prop="certificatenum" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.certificatenum"
          placeholder="请输入证书编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="经办人" prop="employee" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.employee"
          placeholder="请输入经办人"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="负责人" prop="principal" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.principal"
          placeholder="请输入负责人"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="验收意见" prop="opinion" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.opinion"
          placeholder="请输入验收意见"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="编制日期" prop="ctime" v-if="showAdvancedSearch">
        <el-date-picker clearable
                        v-model="queryParams.ctime"
                        type="date"
                        value-format="yyyy-MM-dd"
                        placeholder="请选择编制日期">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="验收日期" prop="ftime" v-if="showAdvancedSearch">
        <el-date-picker clearable
                        v-model="queryParams.ftime"
                        type="date"
                        value-format="yyyy-MM-dd"
                        placeholder="请选择验收日期">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="编号" prop="num" v-if="showAdvancedSearch">
        <el-input
          v-model="queryParams.num"
          placeholder="请输入编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
<!--      <el-form-item label="${comment}" prop="engInfoYuliu1">-->
<!--        <el-input-->
<!--          v-model="queryParams.engInfoYuliu1"-->
<!--          placeholder="请输入${comment}"-->
<!--          clearable-->
<!--          @keyup.enter.native="handleQuery"-->
<!--        />-->
<!--      </el-form-item>-->
<!--      <el-form-item label="${comment}" prop="engInfoYuliu2">-->
<!--        <el-input-->
<!--          v-model="queryParams.engInfoYuliu2"-->
<!--          placeholder="请输入${comment}"-->
<!--          clearable-->
<!--          @keyup.enter.native="handleQuery"-->
<!--        />-->
<!--      </el-form-item>-->
<!--      <el-form-item label="${comment}" prop="engInfoYuliu3">-->
<!--        <el-input-->
<!--          v-model="queryParams.engInfoYuliu3"-->
<!--          placeholder="请输入${comment}"-->
<!--          clearable-->
<!--          @keyup.enter.native="handleQuery"-->
<!--        />-->
<!--      </el-form-item>-->
<!--      <el-form-item label="${comment}" prop="engInfoYuliu4">-->
<!--        <el-input-->
<!--          v-model="queryParams.engInfoYuliu4"-->
<!--          placeholder="请输入${comment}"-->
<!--          clearable-->
<!--          @keyup.enter.native="handleQuery"-->
<!--        />-->
<!--      </el-form-item>-->
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button type="success" icon="el-icon-sort"size="mini" @click="toggleSearchMode">高级搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
<!--      <el-col :span="1.5">-->
<!--        <el-button-->
<!--          type="primary"-->
<!--          plain-->
<!--          icon="el-icon-plus"-->
<!--          size="mini"-->
<!--          @click="handleAdd"-->
<!--          v-hasPermi="['system:info:add']"-->
<!--        >新增</el-button>-->
<!--      </el-col>-->
<!--      <el-col :span="1.5">-->
<!--        <el-button-->
<!--          type="success"-->
<!--          plain-->
<!--          icon="el-icon-edit"-->
<!--          size="mini"-->
<!--          :disabled="single"-->
<!--          @click="handleUpdate"-->
<!--          v-hasPermi="['system:info:edit']"-->
<!--        >修改</el-button>-->
<!--      </el-col>-->
<!--      <el-col :span="1.5">-->
<!--        <el-button-->
<!--          type="danger"-->
<!--          plain-->
<!--          icon="el-icon-delete"-->
<!--          size="mini"-->
<!--          :disabled="multiple"-->
<!--          @click="handleDelete"-->
<!--          v-hasPermi="['system:info:remove']"-->
<!--        >删除</el-button>-->
<!--      </el-col>-->
<!--      <el-col :span="1.5">-->
<!--        <el-button-->
<!--          type="warning"-->
<!--          plain-->
<!--          icon="el-icon-download"-->
<!--          size="mini"-->
<!--          @click="handleExport"-->
<!--          v-hasPermi="['system:info:export']"-->
<!--        >导出</el-button>-->
<!--      </el-col>-->
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="工程id" align="center" prop="id" />
<!--      <el-table-column label="${comment}" align="center" prop="indexId" />-->
<!--      <el-table-column label="${comment}" align="center" prop="itemnum" />-->
<!--      <el-table-column label="${comment}" align="center" prop="dtag" />-->
<!--      <el-table-column label="${comment}" align="center" prop="ftag" />-->
      <el-table-column label="工程名称" align="center" prop="engname"  v-if = "columns[0].visible" width="400"  />
      <el-table-column label="工程号" align="center" prop="engno" v-if = "columns[1].visible"  />
      <el-table-column label="工程流水号" align="center" prop="engid" v-if = "columns[2].visible" :show-overflow-tooltip="true" />
      <el-table-column label="案卷数"  align="center" prop="anjuanshu" v-if = "columns[3].visible" :show-overflow-tooltip="true" />
      <el-table-column label="档案馆代号" align="center" prop="danganguanno" v-if = "columns[4].visible" :show-overflow-tooltip="true" />
      <el-table-column label="档案馆名称" align="center" prop="danganguanname" v-if = "columns[5].visible" />
      <el-table-column label="数字化单位" align="center" prop="shuzihuadanwei" v-if = "columns[6].visible"  />
      <el-table-column label="移交单位" align="center" prop="yijiaodanwei" v-if = "columns[7].visible"/>
      <el-table-column label="编制起始时间" align="center" prop="bianzhidatestart" width="180"  v-if = "columns[8].visible" >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.bianzhidatestart, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="编制结束时间" align="center" prop="bianzhidateend" width="180" v-if = "columns[9].visible">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.bianzhidateend, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="工程地点" align="center" prop="allname" v-if = "columns[10].visible"   />
      <el-table-column label="建设单位" align="center" prop="buildingorg" v-if = "columns[11].visible" />
      <el-table-column label="立项批准单位" align="center" prop="checkorg" v-if = "columns[12].visible" :show-overflow-tooltip="true"  />
      <el-table-column label="设计单位" align="center" prop="designorg" v-if = "columns[13].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="施工单位" align="center" prop="operationorg" v-if = "columns[14].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="勘察单位" align="center" prop="explorationorg" v-if = "columns[15].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="监理单位" align="center" prop="supervisionorg" v-if = "columns[16].visible" :show-overflow-tooltip="true"  />
      <el-table-column label="立项批准文号" align="center" prop="checkIssueno" v-if = "columns[17].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="规划许可证号" align="center" prop="planlicenseno" v-if = "columns[18].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="用地规划许可证号" align="center" prop="landplanlicenseno"  v-if = "columns[19].visible" :show-overflow-tooltip="true" />
      <el-table-column label="用地许可证" align="center" prop="landlicenseno" v-if = "columns[20].visible" :show-overflow-tooltip="true"  />
      <el-table-column label="施工许可证号" align="center" prop="operationlicenseno" v-if = "columns[21].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="地形图号" align="center" prop="mapnum" v-if = "columns[22].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="起点" align="center" prop="startstation" v-if = "columns[23].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="止点" align="center" prop="endstation" v-if = "columns[24].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="总长度(m)" align="center" prop="totallength" v-if = "columns[25].visible" :show-overflow-tooltip="true"  />
      <el-table-column label="开工时间" align="center" prop="startdate" width="180" v-if = "columns[26].visible" :show-overflow-tooltip="true" >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.startdate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="竣工时间" align="center" prop="enddate" width="180" v-if = "columns[27].visible" :show-overflow-tooltip="true" >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.enddate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="工程造价" align="center" prop="cost" v-if = "columns[28].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="工程结算" align="center" prop="balance" v-if = "columns[29].visible" :show-overflow-tooltip="true"  />
      <el-table-column label="项目经理" align="center" prop="projmanager" v-if = "columns[30].visible" :show-overflow-tooltip="true"  />
      <el-table-column label="驻地工程师" align="center" prop="enginee"  v-if = "columns[31].visible" :show-overflow-tooltip="true" />
      <el-table-column label="业主代表" align="center" prop="owner" v-if = "columns[32].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="计划时间" align="center" prop="plandate" width="180" v-if = "columns[33].visible" :show-overflow-tooltip="true" >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.plandate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
<!--      <el-table-column label="${comment}" align="center" prop="hintday" />-->
      <el-table-column label="责任者" align="center" prop="duty" v-if = "columns[34].visible"  :show-overflow-tooltip="true" />
<!--      <el-table-column label="${comment}" align="center" prop="removedate" width="180">-->
<!--        <template slot-scope="scope">-->
<!--          <span>{{ parseTime(scope.row.removedate, '{y}-{m}-{d}') }}</span>-->
<!--        </template>-->
<!--      </el-table-column>-->
<!--      <el-table-column label="${comment}" align="center" prop="removeduty" />-->
<!--      <el-table-column label="${comment}" align="center" prop="removefile" />-->
      <el-table-column label="分部(项)工程" align="center" prop="partproj" v-if = "columns[35].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="合同号" align="center" prop="cnum" v-if = "columns[36].visible" />
<!--      <el-table-column label="${comment}" align="center" prop="concompany2" />-->
<!--      <el-table-column label="${comment}" align="center" prop="icompany2" />-->
<!--      <el-table-column label="${comment}" align="center" prop="mileage" />-->
      <el-table-column label="桩号及部位" align="center" prop="place" v-if = "columns[37].visible" :show-overflow-tooltip="true" />
      <el-table-column label="存放位置" align="center" prop="place1" v-if = "columns[38].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="存放位置" align="center" prop="place2" v-if = "columns[39].visible" :show-overflow-tooltip="true" />
      <el-table-column label="存放位置" align="center" prop="place3" v-if = "columns[40].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="存放位置" align="center" prop="place4"  v-if = "columns[41].visible" :show-overflow-tooltip="true" />
<!--      <el-table-column label="${comment}" align="center" prop="setplace" />-->
<!--      <el-table-column label="${comment}" align="center" prop="settemp" />-->
      <el-table-column label="标段号" align="center" prop="bdnum"  v-if = "columns[42].visible" :show-overflow-tooltip="true" />
      <el-table-column label="单体号" align="center" prop="dtnum"  v-if = "columns[43].visible" :show-overflow-tooltip="true" />
<!--      <el-table-column label="${comment}" align="center" prop="treeindexName" />-->
<!--      <el-table-column label="${comment}" align="center" prop="treenum" />-->
<!--      <el-table-column label="${comment}" align="center" prop="treewcompany" />-->
      <el-table-column label="完成标志" align="center" prop="finishflag" v-if = "columns[44].visible" :show-overflow-tooltip="true"  />
<!--      <el-table-column label="${comment}" align="center" prop="listno" />-->
      <el-table-column label="总用地面积" align="center" prop="ground" v-if = "columns[45].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="总建筑面积" align="center" prop="totalarea" v-if = "columns[46].visible" :show-overflow-tooltip="true"  />
      <el-table-column label="幢数" align="center" prop="house" v-if = "columns[47].visible" :show-overflow-tooltip="true"  />
      <el-table-column label="建筑面积(平方米)" align="center" prop="area" v-if = "columns[48].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="长度(米)" align="center" prop="length" v-if = "columns[49].visible" :show-overflow-tooltip="true"  />
      <el-table-column label="规格" align="center" prop="spec"  v-if = "columns[50].visible" :show-overflow-tooltip="true" />
      <el-table-column label="高度(米)" align="center" prop="height" v-if = "columns[51].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="宽度(米)" align="center" prop="width"  v-if = "columns[52].visible" :show-overflow-tooltip="true" />
      <el-table-column label="级别" align="center" prop="nlevel"  v-if = "columns[53].visible" :show-overflow-tooltip="true" />
      <el-table-column label="跨径(米)" align="center" prop="span" v-if = "columns[54].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="净空" align="center" prop="headroom"  v-if = "columns[55].visible" :show-overflow-tooltip="true" />
      <el-table-column label="申请时间" align="center" prop="applydate" width="180" v-if = "columns[56].visible" :show-overflow-tooltip="true" >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.applydate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="批准时间" align="center" prop="passdate" width="180" v-if = "columns[57].visible" :show-overflow-tooltip="true" >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.passdate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="总用地面积" align="center" prop="groundtype" v-if = "columns[58].visible" :show-overflow-tooltip="true"  />
      <el-table-column label="征拨分类" align="center" prop="collection"  v-if = "columns[59].visible" :show-overflow-tooltip="true" />
      <el-table-column label="原土地分类" align="center" prop="oldgroundtype" v-if = "columns[60].visible" :show-overflow-tooltip="true"  />
      <el-table-column label="荷载" align="center" prop="nload"  v-if = "columns[61].visible" :show-overflow-tooltip="true" />
      <el-table-column label="地上层数" align="center" prop="floorUp" v-if = "columns[62].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="结构类型" align="center" prop="structure" v-if = "columns[63].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="承诺书编号" align="center" prop="consentnum" v-if = "columns[64].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="证书编号" align="center" prop="certificatenum" v-if = "columns[65].visible" :show-overflow-tooltip="true"  />
      <el-table-column label="经办人" align="center" prop="employee" v-if = "columns[66].visible" :show-overflow-tooltip="true"  />
      <el-table-column label="负责人" align="center" prop="principal" v-if = "columns[67].visible"  :show-overflow-tooltip="true" />
      <el-table-column label="验收意见" align="center" prop="opinion"  v-if = "columns[68].visible" :show-overflow-tooltip="true" />
      <el-table-column label="编制日期" align="center" prop="ctime" width="180" v-if = "columns[69].visible" :show-overflow-tooltip="true" >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.ctime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="验收日期" align="center" prop="ftime" width="180" v-if = "columns[70].visible" :show-overflow-tooltip="true" >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.ftime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="编号" align="center" prop="num"  v-if = "columns[71].visible" :show-overflow-tooltip="true" />
<!--      <el-table-column label="${comment}" align="center" prop="engInfoYuliu1" />-->
<!--      <el-table-column label="${comment}" align="center" prop="engInfoYuliu2" />-->
<!--      <el-table-column label="${comment}" align="center" prop="engInfoYuliu3" />-->
<!--      <el-table-column label="${comment}" align="center" prop="engInfoYuliu4" />-->
<!--      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
<!--        <template slot-scope="scope">-->
<!--          <el-button-->
<!--            size="mini"-->
<!--            type="text"-->
<!--            icon="el-icon-edit"-->
<!--            @click="handleUpdate(scope.row)"-->
<!--            v-hasPermi="['system:info:edit']"-->
<!--          >修改</el-button>-->
<!--          <el-button-->
<!--            size="mini"-->
<!--            type="text"-->
<!--            icon="el-icon-delete"-->
<!--            @click="handleDelete(scope.row)"-->
<!--            v-hasPermi="['system:info:remove']"-->
<!--          >删除</el-button>-->
<!--        </template>-->
<!--      </el-table-column>-->
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改工程信息对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="1700px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">

<!--        <el-form-item label="${comment}" prop="itemnum">-->
<!--          <el-input v-model="form.itemnum" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->
<!--        <el-form-item label="${comment}" prop="dtag">-->
<!--          <el-input v-model="form.dtag" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->
<!--        <el-form-item label="${comment}" prop="ftag">-->
<!--          <el-input v-model="form.ftag" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->
        <el-row :gutter="20">
          <el-col :span="6">
          <!--第一列-->
            <el-form-item label="工程id" prop="id">
              <el-input v-model="form.id" placeholder="请输入工程id" />
            </el-form-item>
          <el-form-item label="工程名称" prop="engname">
            <el-input v-model="form.engname" placeholder="请输入工程名称" v-dialog-drag-width="155" />
          </el-form-item>
          <el-form-item label="工程号" prop="engno">
            <el-input v-model="form.engno" placeholder="请输入工程号" />
          </el-form-item>
          <el-form-item label="工程流水号" prop="engid">
            <el-input v-model="form.engid" placeholder="请输入工程流水号" />
          </el-form-item>
          <el-form-item label="案卷数" prop="anjuanshu">
            <el-input v-model="form.anjuanshu" placeholder="请输入案卷数" />
          </el-form-item>
          <el-form-item label="档案馆代号" prop="danganguanno">
            <el-input v-model="form.danganguanno" placeholder="请输入档案馆代号" />
          </el-form-item>
          <el-form-item label="档案馆名称" prop="danganguanname">
            <el-input v-model="form.danganguanname" placeholder="请输入档案馆名称" />
          </el-form-item>
          <el-form-item label="数字化单位" prop="shuzihuadanwei">
            <el-input v-model="form.shuzihuadanwei" placeholder="请输入数字化单位" />
          </el-form-item>
          <el-form-item label="移交单位" prop="yijiaodanwei">
            <el-input v-model="form.yijiaodanwei" placeholder="请输入移交单位" />
          </el-form-item>
            <el-form-item label="征拨分类" prop="collection">
              <el-input v-model="form.collection" placeholder="请输入征拨分类" />
            </el-form-item>
            <el-form-item label="荷载" prop="nload">
              <el-input v-model="form.nload" placeholder="请输入荷载" />
            </el-form-item>
            <el-form-item label="地上层数" prop="floorUp">
              <el-input v-model="form.floorUp" placeholder="请输入地上层数" />
            </el-form-item>
            <el-form-item label="结构类型" prop="structure">
              <el-input v-model="form.structure" placeholder="请输入结构类型" />
            </el-form-item>
            <el-form-item label="承诺书编号" prop="consentnum">
              <el-input v-model="form.consentnum" placeholder="请输入承诺书编号" />
            </el-form-item>
            <el-form-item label="证书编号" prop="certificatenum">
              <el-input v-model="form.certificatenum" placeholder="请输入证书编号" />
            </el-form-item>
            <el-form-item label="经办人" prop="employee">
              <el-input v-model="form.employee" placeholder="请输入经办人" />
            </el-form-item>
            <el-form-item label="负责人" prop="principal">
              <el-input v-model="form.principal" placeholder="请输入负责人" />
            </el-form-item>
            <el-form-item label="验收意见" prop="opinion">
              <el-input v-model="form.opinion" placeholder="请输入验收意见" />
            </el-form-item>
            <el-form-item label="高度(米)" prop="height">
              <el-input v-model="form.height" placeholder="请输入高度(米)" />
            </el-form-item>
          </el-col>

          <!-- 第二列-->
          <el-col :span="6">
          <el-form-item label="编制起始时间" prop="bianzhidatestart">
            <el-date-picker clearable
                            v-model="form.bianzhidatestart"
                            type="date"
                            value-format="yyyy-MM-dd"
                            placeholder="请选择编制起始时间">
            </el-date-picker>
          </el-form-item>
          <el-form-item label="编制结束时间" prop="bianzhidateend">
            <el-date-picker clearable
                            v-model="form.bianzhidateend"
                            type="date"
                            value-format="yyyy-MM-dd"
                            placeholder="请选择编制结束时间">
            </el-date-picker>
          </el-form-item>
          <el-form-item label="工程地点" prop="allname">
            <el-input v-model="form.allname" placeholder="请输入工程地点" />
          </el-form-item>
          <el-form-item label="建设单位" prop="buildingorg">
            <el-input v-model="form.buildingorg" placeholder="请输入建设单位" />
          </el-form-item>
          <el-form-item label="立项批准单位" prop="checkorg">
            <el-input v-model="form.checkorg" placeholder="请输入立项批准单位" />
          </el-form-item>
          <el-form-item label="设计单位" prop="designorg">
            <el-input v-model="form.designorg" placeholder="请输入设计单位" />
          </el-form-item>
          <el-form-item label="施工单位" prop="operationorg">
            <el-input v-model="form.operationorg" placeholder="请输入施工单位" />
          </el-form-item>
          <el-form-item label="勘察单位" prop="explorationorg">
            <el-input v-model="form.explorationorg" placeholder="请输入勘察单位" />
          </el-form-item>
          <el-form-item label="监理单位" prop="supervisionorg">
            <el-input v-model="form.supervisionorg" placeholder="请输入监理单位" />
          </el-form-item>
          <el-form-item label="立项批准文号" prop="checkIssueno">
            <el-input v-model="form.checkIssueno" placeholder="请输入立项批准文号" />
          </el-form-item>
            <el-form-item label="总用地面积" prop="ground">
              <el-input v-model="form.ground" placeholder="请输入总用地面积" />
            </el-form-item>
            <el-form-item label="总建筑面积" prop="totalarea">
              <el-input v-model="form.totalarea" placeholder="请输入总建筑面积" />
            </el-form-item>
            <el-form-item label="幢数" prop="house">
              <el-input v-model="form.house" placeholder="请输入幢数" />
            </el-form-item>
            <el-form-item label="建筑面积(平方米)" prop="area">
              <el-input v-model="form.area" placeholder="请输入建筑面积(平方米)" />
            </el-form-item>
            <el-form-item label="长度(米)" prop="length">
              <el-input v-model="form.length" placeholder="请输入长度(米)" />
            </el-form-item>


            <el-form-item label="宽度(米)" prop="width">
              <el-input v-model="form.width" placeholder="请输入宽度(米)" />
            </el-form-item>


            </el-col>

          <!-- 第三列-->
          <el-col :span="6">
            <el-form-item label="规划许可证号" prop="planlicenseno">
              <el-input v-model="form.planlicenseno" placeholder="请输入规划许可证号" />
            </el-form-item>
            <el-form-item label="用地规划许可证号" prop="landplanlicenseno">
              <el-input v-model="form.landplanlicenseno" placeholder="请输入用地规划许可证号" />
            </el-form-item>
            <el-form-item label="用地许可证" prop="landlicenseno">
              <el-input v-model="form.landlicenseno" placeholder="请输入用地许可证" />
            </el-form-item>
            <el-form-item label="施工许可证号" prop="operationlicenseno">
              <el-input v-model="form.operationlicenseno" placeholder="请输入施工许可证号" />
            </el-form-item>
            <el-form-item label="地形图号" prop="mapnum">
              <el-input v-model="form.mapnum" placeholder="请输入地形图号" />
            </el-form-item>
            <el-form-item label="起点" prop="startstation">
              <el-input v-model="form.startstation" placeholder="请输入起点" />
            </el-form-item>
            <el-form-item label="止点" prop="endstation">
              <el-input v-model="form.endstation" placeholder="请输入止点" />
            </el-form-item>
            <el-form-item label="总长度(m)" prop="totallength">
              <el-input v-model="form.totallength" placeholder="请输入总长度(m)" />
            </el-form-item>
            <el-form-item label="完成标志" prop="finishflag">
              <el-input v-model="form.finishflag" placeholder="请输入完成标志" />
            </el-form-item>
            <el-form-item label="标段号" prop="bdnum">
              <el-input v-model="form.bdnum" placeholder="请输入标段号" />
            </el-form-item>
            <el-form-item label="单体号" prop="dtnum">
              <el-input v-model="form.dtnum" placeholder="请输入单体号" />
            </el-form-item>
            <el-form-item label="分部(项)工程" prop="partproj">
              <el-input v-model="form.partproj" placeholder="请输入分部(项)工程" />
            </el-form-item>
            <el-form-item label="合同号" prop="cnum">
              <el-input v-model="form.cnum" placeholder="请输入合同号" />
            </el-form-item>
            <el-form-item label="跨径(米)" prop="span">
              <el-input v-model="form.span" placeholder="请输入跨径(米)" />
            </el-form-item>
            <el-form-item label="编制日期" prop="ctime">
              <el-date-picker clearable
                              v-model="form.ctime"
                              type="date"
                              value-format="yyyy-MM-dd"
                              placeholder="请选择编制日期">
              </el-date-picker>
            </el-form-item>
            <el-form-item label="验收日期" prop="ftime">
              <el-date-picker clearable
                              v-model="form.ftime"
                              type="date"
                              value-format="yyyy-MM-dd"
                              placeholder="请选择验收日期">
              </el-date-picker>
            </el-form-item>
            <el-form-item label="编号" prop="num">
              <el-input v-model="form.num" placeholder="请输入编号" />
            </el-form-item>

          </el-col>

          <!--第四列-->
          <el-col :span="6">
            <el-form-item label="开工时间" prop="startdate">
              <el-date-picker clearable
                              v-model="form.startdate"
                              type="date"
                              value-format="yyyy-MM-dd"
                              placeholder="请选择开工时间">
              </el-date-picker>
            </el-form-item>
            <el-form-item label="竣工时间" prop="enddate">
              <el-date-picker clearable
                              v-model="form.enddate"
                              type="date"
                              value-format="yyyy-MM-dd"
                              placeholder="请选择竣工时间">
              </el-date-picker>
            </el-form-item>
            <el-form-item label="工程造价" prop="cost">
              <el-input v-model="form.cost" placeholder="请输入工程造价" />
            </el-form-item>
            <el-form-item label="工程结算" prop="balance">
              <el-input v-model="form.balance" placeholder="请输入工程结算" />
            </el-form-item>
            <el-form-item label="项目经理" prop="projmanager">
              <el-input v-model="form.projmanager" placeholder="请输入项目经理" />
            </el-form-item>
            <el-form-item label="驻地工程师" prop="enginee">
              <el-input v-model="form.enginee" placeholder="请输入驻地工程师" />
            </el-form-item>
            <el-form-item label="业主代表" prop="owner">
              <el-input v-model="form.owner" placeholder="请输入业主代表" />
            </el-form-item>
            <el-form-item label="计划时间" prop="plandate">
              <el-date-picker clearable
                              v-model="form.plandate"
                              type="date"
                              value-format="yyyy-MM-dd"
                              placeholder="请选择计划时间">
              </el-date-picker>
            </el-form-item>
<!--            <el-form-item label="${comment}" prop="hintday">-->
<!--              <el-input v-model="form.hintday" placeholder="请输入${comment}" />-->
<!--            </el-form-item>-->
            <el-form-item label="责任者" prop="duty">
              <el-input v-model="form.duty" placeholder="请输入责任者" />
            </el-form-item>
<!--            <el-form-item label="${comment}" prop="removedate">-->
<!--              <el-date-picker clearable-->
<!--                              v-model="form.removedate"-->
<!--                              type="date"-->
<!--                              value-format="yyyy-MM-dd"-->
<!--                              placeholder="请选择${comment}">-->
<!--              </el-date-picker>-->
<!--            </el-form-item>-->
            <el-form-item label="桩号及部位" prop="place">
              <el-input v-model="form.place" placeholder="请输入桩号及部位" />
            </el-form-item>
            <el-form-item label="存放位置" prop="place1">
              <el-input v-model="form.place1" placeholder="请输入存放位置" />
            </el-form-item>
            <el-form-item label="存放位置" prop="place2">
              <el-input v-model="form.place2" placeholder="请输入存放位置" />
            </el-form-item>
            <el-form-item label="存放位置" prop="place3">
              <el-input v-model="form.place3" placeholder="请输入存放位置" />
            </el-form-item>
            <el-form-item label="存放位置" prop="place4">
              <el-input v-model="form.place4" placeholder="请输入存放位置" />
            </el-form-item>
            <el-form-item label="净空" prop="headroom">
              <el-input v-model="form.headroom" placeholder="请输入净空" />
            </el-form-item>
            <el-form-item label="申请时间" prop="applydate">
              <el-date-picker clearable
                              v-model="form.applydate"
                              type="date"
                              value-format="yyyy-MM-dd"
                              placeholder="请选择申请时间">
              </el-date-picker>
            </el-form-item>
            <el-form-item label="批准时间" prop="passdate">
              <el-date-picker clearable
                              v-model="form.passdate"
                              type="date"
                              value-format="yyyy-MM-dd"
                              placeholder="请选择批准时间">
              </el-date-picker>
            </el-form-item>
            <el-form-item label="规格" prop="spec">
              <el-input v-model="form.spec" placeholder="请输入规格" />
            </el-form-item>
            <el-form-item label="级别" prop="nlevel">
              <el-input v-model="form.nlevel" placeholder="请输入级别" />
            </el-form-item>
          </el-col>
        </el-row>





<!--        <el-form-item label="${comment}" prop="removeduty">-->
<!--          <el-input v-model="form.removeduty" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->
<!--        <el-form-item label="${comment}" prop="removefile">-->
<!--          <file-upload v-model="form.removefile"/>-->
<!--        </el-form-item>-->

<!--        <el-form-item label="${comment}" prop="concompany2">-->
<!--          <el-input v-model="form.concompany2" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->
<!--        <el-form-item label="${comment}" prop="icompany2">-->
<!--          <el-input v-model="form.icompany2" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->
<!--        <el-form-item label="${comment}" prop="mileage">-->
<!--          <el-input v-model="form.mileage" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->

<!--        <el-form-item label="${comment}" prop="setplace">-->
<!--          <el-input v-model="form.setplace" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->
<!--        <el-form-item label="${comment}" prop="settemp">-->
<!--          <el-input v-model="form.settemp" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->

<!--        <el-form-item label="${comment}" prop="treeindexName">-->
<!--          <el-input v-model="form.treeindexName" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->
<!--        <el-form-item label="${comment}" prop="treenum">-->
<!--          <el-input v-model="form.treenum" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->
<!--        <el-form-item label="${comment}" prop="treewcompany">-->
<!--          <el-input v-model="form.treewcompany" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->

<!--        <el-form-item label="${comment}" prop="listno">-->
<!--          <el-input v-model="form.listno" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->


<!--        <el-form-item label="${comment}" prop="engInfoYuliu1">-->
<!--          <el-input v-model="form.engInfoYuliu1" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->
<!--        <el-form-item label="${comment}" prop="engInfoYuliu2">-->
<!--          <el-input v-model="form.engInfoYuliu2" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->
<!--        <el-form-item label="${comment}" prop="engInfoYuliu3">-->
<!--          <el-input v-model="form.engInfoYuliu3" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->
<!--        <el-form-item label="${comment}" prop="engInfoYuliu4">-->
<!--          <el-input v-model="form.engInfoYuliu4" placeholder="请输入${comment}" />-->
<!--        </el-form-item>-->
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import {
  getEngInfoById,
  listEngInfo,
  getEngInfo,
  delEngInfo,
  addEngInfo,
  updateEngInfo,
  removeEngInfoById
} from "@/api/system/enginfo";

export default {
  name: "Info",
  data() {
    return {
      showAdvancedSearch: false, // 初始时为简单搜索模式
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 工程信息表格数据
      infoList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        indexId: null,
        itemnum: null,
        dtag: null,
        ftag: null,
        engname: null,
        engno: null,
        engid: null,
        anjuanshu: null,
        danganguanno: null,
        danganguanname: null,
        shuzihuadanwei: null,
        yijiaodanwei: null,
        bianzhidatestart: null,
        bianzhidateend: null,
        allname: null,
        buildingorg: null,
        checkorg: null,
        designorg: null,
        operationorg: null,
        explorationorg: null,
        supervisionorg: null,
        checkIssueno: null,
        planlicenseno: null,
        landplanlicenseno: null,
        landlicenseno: null,
        operationlicenseno: null,
        mapnum: null,
        startstation: null,
        endstation: null,
        totallength: null,
        startdate: null,
        enddate: null,
        cost: null,
        balance: null,
        projmanager: null,
        enginee: null,
        owner: null,
        plandate: null,
        hintday: null,
        duty: null,
        removedate: null,
        removeduty: null,
        removefile: null,
        partproj: null,
        cnum: null,
        concompany2: null,
        icompany2: null,
        mileage: null,
        place: null,
        place1: null,
        place2: null,
        place3: null,
        place4: null,
        setplace: null,
        settemp: null,
        bdnum: null,
        dtnum: null,
        treeindexName: null,
        treenum: null,
        treewcompany: null,
        finishflag: null,
        listno: null,
        ground: null,
        totalarea: null,
        house: null,
        area: null,
        length: null,
        spec: null,
        height: null,
        width: null,
        nlevel: null,
        span: null,
        headroom: null,
        applydate: null,
        passdate: null,
        groundtype: null,
        collection: null,
        oldgroundtype: null,
        nload: null,
        floorUp: null,
        structure: null,
        consentnum: null,
        certificatenum: null,
        employee: null,
        principal: null,
        opinion: null,
        ctime: null,
        ftime: null,
        num: null,
        engInfoYuliu1: null,
        engInfoYuliu2: null,
        engInfoYuliu3: null,
        engInfoYuliu4: null
      },
      // 表单参数
      form: {},
      // 传递id
      idForm: {},
      // 表单校验
      rules: {
      },
      // 列信息
      columns: [
        { key: 0, label: '工程名称', visible: true },
        { key: 1, label: '工程号', visible: true },
        { key: 2, label: '工程流水号', visible: false },
        { key: 3, label: '案卷数', visible: true },
        { key: 4, label: '档案馆代号', visible: false },
        { key: 5, label: '档案馆名称', visible: true },
        { key: 6, label: '数字化单位', visible: true },
        { key: 7, label: '移交单位', visible: true },
        { key: 8, label: '编制起始时间', visible: true },
        { key: 9, label: '编制结束时间', visible: true },
        { key: 10, label: '工程地点', visible: true },
        { key: 11, label: '建设单位', visible: true },
        { key: 12, label: '立项批准单位', visible: false },
        { key: 13, label: '设计单位', visible: false },
        { key: 14, label: '施工单位', visible: false },
        { key: 15, label: '勘察单位', visible: false },
        { key: 16, label: '监理单位', visible: false },
        { key: 17, label: '立项批准文号', visible: false },
        { key: 18, label: '规划许可证号', visible: false },
        { key: 19, label: '用地规划许可证号', visible: false },
        { key: 20, label: '用地许可证', visible: false },
        { key: 21, label: '施工许可证号', visible: false },
        { key: 22, label: '地形图号', visible: false },
        { key: 23, label: '起点', visible: false },
        { key: 24, label: '止点', visible: false },
        { key: 25, label: '总长度(m)', visible: false },
        { key: 26, label: '开工时间', visible: false },
        { key: 27, label: '竣工时间', visible: false },
        { key: 28, label: '工程造价', visible: false },
        { key: 29, label: '工程结算', visible: false },
        { key: 30, label: '项目经理', visible: false },
        { key: 31, label: '驻地工程师', visible: false },
        { key: 32, label: '业主代表', visible: false },
        { key: 33, label: '计划时间', visible: false },
        { key: 34, label: '责任者', visible: false },
        { key: 35, label: '分部(项)工程', visible: false },
        { key: 36, label: '合同号', visible: false },
        { key: 37, label: '桩号及部位', visible: false },
        { key: 38, label: '存放位置', visible: false },
        { key: 39, label: '存放位置', visible: false },
        { key: 40, label: '存放位置', visible: false },
        { key: 41, label: '存放位置', visible: false },
        { key: 42, label: '标段号', visible: false },
        { key: 43, label: '单体号', visible: false },
        { key: 44, label: '完成标志', visible: false },
        { key: 45, label: '总用地面积', visible: false },
        { key: 46, label: '总建筑面积', visible: false },
        { key: 47, label: '幢数', visible: false },
        { key: 48, label: '建筑面积(平方米)', visible: false },
        { key: 49, label: '长度(米)', visible: false },
        { key: 50, label: '规格', visible: false },
        { key: 51, label: '高度(米)', visible: false },
        { key: 52, label: '宽度(米)', visible: false },
        { key: 53, label: '级别', visible: false },
        { key: 54, label: '跨径(米)', visible: false },
        { key: 55, label: '净空', visible: false },
        { key: 56, label: '申请时间', visible: false },
        { key: 57, label: '批准时间', visible: false },
        { key: 58, label: '总用地面积', visible: false },
        { key: 59, label: '征拨分类', visible: false },
        { key: 60, label: '原土地分类', visible: false },
        { key: 61, label: '荷载', visible: false },
        { key: 62, label: '地上层数', visible: false },
        { key: 63, label: '结构类型', visible: false },
        { key: 64, label: '承诺书编号', visible: false },
        { key: 65, label: '证书编号', visible: false },
        { key: 66, label: '经办人', visible: false },
        { key: 67, label: '负责人', visible: false },
        { key: 68, label: '验收意见', visible: false },
        { key: 69, label: '编制日期', visible: true },
        { key: 70, label: '验收日期', visible: true },
        { key: 71, label: '编号', visible: true },
      ],
    };
  },
  created() {
    this.getList();
  },
  methods: {
    toggleSearchMode() {
      this.showAdvancedSearch = !this.showAdvancedSearch;
    },
    /** 查询工程信息列表 */
    getList() {
      this.loading = true;
      listEngInfo(this.queryParams).then(response => {
        this.infoList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        indexId: null,
        itemnum: null,
        dtag: null,
        ftag: null,
        engname: null,
        engno: null,
        engid: null,
        anjuanshu: null,
        danganguanno: null,
        danganguanname: null,
        shuzihuadanwei: null,
        yijiaodanwei: null,
        bianzhidatestart: null,
        bianzhidateend: null,
        allname: null,
        buildingorg: null,
        checkorg: null,
        designorg: null,
        operationorg: null,
        explorationorg: null,
        supervisionorg: null,
        checkIssueno: null,
        planlicenseno: null,
        landplanlicenseno: null,
        landlicenseno: null,
        operationlicenseno: null,
        mapnum: null,
        startstation: null,
        endstation: null,
        totallength: null,
        startdate: null,
        enddate: null,
        cost: null,
        balance: null,
        projmanager: null,
        enginee: null,
        owner: null,
        plandate: null,
        hintday: null,
        duty: null,
        removedate: null,
        removeduty: null,
        removefile: null,
        partproj: null,
        cnum: null,
        concompany2: null,
        icompany2: null,
        mileage: null,
        place: null,
        place1: null,
        place2: null,
        place3: null,
        place4: null,
        setplace: null,
        settemp: null,
        bdnum: null,
        dtnum: null,
        treeindexName: null,
        treenum: null,
        treewcompany: null,
        finishflag: null,
        listno: null,
        ground: null,
        totalarea: null,
        house: null,
        area: null,
        length: null,
        spec: null,
        height: null,
        width: null,
        nlevel: null,
        span: null,
        headroom: null,
        applydate: null,
        passdate: null,
        groundtype: null,
        collection: null,
        oldgroundtype: null,
        nload: null,
        floorUp: null,
        structure: null,
        consentnum: null,
        certificatenum: null,
        employee: null,
        principal: null,
        opinion: null,
        ctime: null,
        ftime: null,
        num: null,
        engInfoYuliu1: null,
        engInfoYuliu2: null,
        engInfoYuliu3: null,
        engInfoYuliu4: null
      };
      this.idForm = {
        id: null,
        ids: null
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.id)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加工程信息";
    },

    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      if(this.ids.length === 0){
        this.idForm.id = row.id;
      }else{
        this.idForm.ids = this.ids;
      }
      getEngInfoById(this.idForm).then(response=>{
          this.form = response.data;
          this.open = true;
          this.title = "修改工程信息";
      })
    },

    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.id != null) {
            updateEngInfo(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addEngInfo(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      if(this.ids.length === 0){
        this.idForm.id = row.id;
        removeEngInfoById(this.idForm)
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }else{
        this.idForm.ids = this.ids;
        removeEngInfoById(this.idForm);
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('system/info/export', {
        ...this.queryParams
      }, `info_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>

<style>
  .my_title{
    margin-bottom: 13px;
    font-weight: lighter;
  }
</style>
